package utils.config;


import org.junit.Test;

import java.util.ResourceBundle;

//配置文件的工具类
public class MyPropsUtils {
    static ResourceBundle bundle = ResourceBundle.getBundle("config");

    /**
     * 配置文件解析类
     */

    public static String apply(String propsKey) {
        return bundle.getString(propsKey);
    }

    @Test
    public void test() {
        System.out.println(MyPropsUtils.apply("redis.port"));
    }
}
